Install Required Libraries

Import Libraries

Get Cleveland Data from UCI Repository

Convert Nominal Variables - chest pain type, resting ecg and thal

Exploratory Data Analysis

Target Variables

Categorical Binaries - Sex, FBS and Exang

Categorical Variables - CP, ECG and thal

Numeric Variables - Age, Cholestrol,Resting BP and Max heart rate

Age

Cholestrol

Resting BP

Max Heart Rate

Oldpeak

Age vs Max HR

Correlations

Test Train Split

Modeling

Base Models

Confusion Matrix for Base Models

Tabular Net (TABNET)

Tabular Nets Plots

Tabnet Metrics

Confusion Matrix for Tabular Net

Feature Importances

Feature Explainability

By using the masks, we can understand which features are being used at a prediction level